import React, { Component } from 'react';
import {
    StyleSheet,
} from 'react-native';
class HttpUnite {
    constructor(){
      this.Url = 'http://cs.yike1908.com/yike_dashuju/';
    }
    httpPost(mod='',payload = {}) {
        let Obvers = {
            method: 'POST',
            headers: {
                'Accept': 'application/json',
                'Content-Type': 'application/json',
            },
            body: JSON.stringify(payload)
        };
        return fetch(this.Url+mod,Obvers).then(data=>data.json());
    }
}
let HttpRn = new HttpUnite();
export default function HttpXn(){
    return HttpRn;
}